<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html>

		<!-- 顶部LOGO和导航栏 -->

		<header>
			<div class="wrap">
				<nav class="navbar navbar-expand-lg navbar-light shift">
					<div class="logo">
						<h1 id="myH1">
							<a class="navbar-brand" href="home.jsp">
								Yoga
								<img src="images/LOGO-白色剪影.png" alt="哦豁" style="max-width: 70px;">
							</a>
						</h1>
					</div>
					<button class="navbar-toggler" id="hideButton" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
					 aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
						<span class="navbar-toggler-icon"></span>
					</button>
					<div class="collapse navbar-collapse" id="navbarSupportedContent">
						<ul class="navbar-nav mx-auto">
							<li class="nav-item">
								<a class="nav-link active" href="home.jsp">主页
									<span class="sr-only">(current)</span>
								</a>
							</li>
							
							<shiro:hasAnyRoles name="coach,gym">
							<li class="nav-item dropdown">
								 <a class="nav-link dropdown-toggle" href="javascript:void(0)" role="button" data-toggle="dropdown"
								 aria-haspopup="true" aria-expanded="false">学员
									<i class="fas fa-angle-down"></i>
								 </a>
								<div class="dropdown-menu" aria-labelledby="navbarDropdown">
									<a class="dropdown-item" href="myStudent.jsp">我的学员</a>
									<div class="dropdown-divider"></div>
									<a class="dropdown-item" href="viewStudent.jsp">附近学员</a>
								</div>
							</li>
							</shiro:hasAnyRoles>
							
							<shiro:hasAnyRoles name="student,gym">
							<li class="nav-item dropdown">
								 <a class="nav-link dropdown-toggle" href="javascript:void(0)" role="button" data-toggle="dropdown"
								 aria-haspopup="true" aria-expanded="false">教练
									<i class="fas fa-angle-down"></i>
								 </a>
								<div class="dropdown-menu" aria-labelledby="navbarDropdown">
									<a class="dropdown-item" href="myCoach.jsp">我的教练</a>
									<div class="dropdown-divider"></div>
									<a class="dropdown-item" href="/vi_user_coach/viewCoach">附近教练</a>
								</div>
							</li>
							</shiro:hasAnyRoles>
							
							
							<shiro:lacksRole name="gym">
							<li class="nav-item dropdown">
								<a class="nav-link dropdown-toggle" href="javascript:void(0)" id="navbarDropdown" role="button" data-toggle="dropdown"
								 aria-haspopup="true" aria-expanded="false">
									场馆
									<i class="fas fa-angle-down"></i>
								</a>
								
								<div class="dropdown-menu" aria-labelledby="navbarDropdown">
									<a class="dropdown-item" href="/vi_user_coach/viewGym">附近场馆</a>
								</div>
							</li>
							</shiro:lacksRole>
							<li class="nav-item dropdown">
								<a class="nav-link dropdown-toggle" href="javascript:void(0)" role="button" data-toggle="dropdown"
								 aria-haspopup="true" aria-expanded="false">通知
									<i class="fas fa-angle-down"></i>
								 </a>
								<div class="dropdown-menu" aria-labelledby="navbarDropdown">
									<a class="dropdown-item" href="html/attentionDynamics.html">关注动态</a>
									<div class="dropdown-divider"></div>
									<a class="dropdown-item" href="html/sessionInfo.html">会话</a>
									<shiro:hasRole name="coach">
									<div class="dropdown-divider"></div>
									<a class="dropdown-item" href="html/myRemindList.html">签约通知</a>
									</shiro:hasRole>
									
									
									
									<!-- 留言功能未实现 -->
									<!-- <div class="dropdown-divider"></div> -->
									<!-- <a class="dropdown-item" href="javascript:void(0)">留言查看</a> -->
								</div>
							</li>
							<li class="nav-item dropdown">
								<a class="nav-link dropdown-toggle" href="javascript:void(0)" role="button" data-toggle="dropdown"
								 aria-haspopup="true" aria-expanded="false">我
									<i class="fas fa-angle-down"></i>
								 </a>
								<div class="dropdown-menu" aria-labelledby="navbarDropdown">
									<a class="dropdown-item" href="html/myFollowed.html">我的关注</a>
									<div class="dropdown-divider"></div>
									<a class="dropdown-item" href="html/myFriend.html">我的好友</a>
									<div class="dropdown-divider"></div>

									<a class="dropdown-item" href="/userAction/findUserByUid">我的钱包</a>

									<div class="dropdown-divider"></div>
									<shiro:hasRole name="student">
									<a class="dropdown-item" href="jsp/studentOrder.jsp">我的订单</a>
									<div class="dropdown-divider"></div>
									</shiro:hasRole>
									<shiro:hasRole name="coach">
									<a class="dropdown-item" href="jsp/coachOrder.jsp">我的订单</a>
									<div class="dropdown-divider"></div>
									</shiro:hasRole>
									
									<shiro:hasRole name="student">
						            <a class="dropdown-item" href="../html/studentBasic.html">我的信息</a>
					                </shiro:hasRole>
									<shiro:hasRole name="coach">
						            <a class="dropdown-item" href="../html/coachBasic.html">我的信息</a>
					                </shiro:hasRole>
									<shiro:hasRole name="gym">
						            <a class="dropdown-item" href="../html/gymBasic.html">我的信息</a>
					                </shiro:hasRole>
									<div class="dropdown-divider"></div>
									<a class="dropdown-item" href="/logout">退出登录</a>
								</div>
							</li>
						</ul>
					</div>
				</nav>
			</div>
		</header>